﻿namespace AdoNetExecuterLibrary
{
    using System.Data.SqlClient;
    public class MsSqlExecuter : BaseExecuter<SqlConnection, SqlCommand, SqlParameter>
    {
        public override string ConnectionString
        {
            get
            {
                return base.ConnectionString;
            }
            set
            {
                SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder(value);
                if (string.IsNullOrEmpty(builder.ApplicationName) || builder.ApplicationName == ".Net SqlClient Data Provider")
                {
                    builder.ApplicationName = "AdoNetExecuterLibrary";
                }
                base.ConnectionString = builder.ConnectionString;
            }
        }
        public MsSqlExecuter()
        {

        }
        public MsSqlExecuter(string connectionString)
            : base(connectionString)
        {

        }
    }
}
